# -*- coding: utf-8 -*-
# @Time : 2023/12/29 4:56 PM 
# @Author : Wayne
# @Email : 1
# @File : ip_c.py
# @Project : young_python_demo
# @DESCRIPTION :
import socket

hostname = socket.gethostname()
ip_address = socket.gethostbyname(hostname)
print(ip_address)
